翻訳と辞書
Words near each other
・ Operator (profession)
・ Operator (sternwheeler)
・ Operator (That's Not the Way It Feels)
・ Operator 13
・ Operator algebra
・ Operator assistance
・ Operator associativity
・ Operator Generator
・ Operator grammar
・ Operator ideal
・ Operator K-theory
・ Operator logo
・ Operator messaging
・ Operator No. 5
・ Operator norm
Operator overloading
・ Operator Please
・ Operator product expansion
・ Operator space
・ Operator system
・ Operator theory
・ Operator topologies
・ Operator Training Simulator
・ Operator YAPO
・ Operator, Long Distance Please
・ Operator, Operator
・ Operator-precedence grammar
・ Operator-precedence parser
・ Operators in C and C++
・ Operatunity


Dictionary Lists
翻訳と辞書 辞書検索 [ 開発暫定版 ]
スポンサード リンク

Operator overloading : ウィキペディア英語版
Operator overloading

In programming, operator overloading—less commonly known as operator ad hoc polymorphism—is a specific case of polymorphism, where different operators have different implementations depending on their arguments. Operator overloading is generally defined by the language, the programmer, or both.
==Motivation==
Operator overloading is syntactic sugar, and is used because it allows the developer to program using notation closer to the target domain〔(【引用サイトリンク】url=http://www.parashift.com/c++-faq-lite/operator-overloading.html#faq-13.2 )〕 and allows user-defined types a similar level of syntactic support as types built into the language. It is common, for example, in scientific computing, where it allows computational representations of mathematical objects to be manipulated with the same syntax as on paper.
Operator overloading does not change the expressive power of a language (with functions), as it can be emulated using function calls; for example, consider variables a, b, c of some user-defined type, such as matrices:
a + b
* c
In a language that supports operator overloading, and with the usual assumption that the '
*' operator has higher precedence than '+' operator, this is a concise way of writing:
add (a, multiply (b,c))
However, the former syntax reflects common mathematical usage.

抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)
ウィキペディアで「Operator overloading」の詳細全文を読む



スポンサード リンク
翻訳と辞書 : 翻訳のためのインターネットリソース

Copyright(C) kotoba.ne.jp 1997-2016. All Rights Reserved.